﻿// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the LGPL License, Version 3.0. See License.txt in the project root for license information.
// Website: https://admin.blazor.zone

using BlazorAdmin.Models;
using System.Collections.Generic;

namespace BlazorAdmin.Interface
{
    /// <summary>
    /// 
    /// </summary>
    public interface IException
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="exception"></param>
        /// <returns></returns>
        bool Log(Error exception);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="searchText"></param>
        /// <param name="filter"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageItems"></param>
        /// <param name="sortList"></param>
        /// <returns></returns>
        (IEnumerable<Error> Items, int ItemsCount) GetAll(string searchText, ExceptionFilter filter, int pageIndex, int pageItems, List<string> sortList);
    }
}